package com.cloud.util;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @version v1.0
 * @author: TianXiang
 * @description:
 * @date: 2020/12/13
 */
public class ThreadUtils {

    static ThreadPoolExecutor threadPool = new ThreadPoolExecutor(20, 100, 0L, TimeUnit.SECONDS, new LinkedBlockingQueue<>(100));

    public static void executeTask(Runnable runnable) {
        threadPool.execute(runnable);
    }

}
